﻿using System;
using System.ComponentModel.DataAnnotations;
using Data.AggregateRoot;

namespace Data.Entities
{
    /// <summary>
    /// 系统字典
    /// </summary>
    public class SysDictionary : EntityBase
    {
        /// <summary>
        /// 父级Id
        /// </summary>
        [Required]
        public Guid ParentId { get; set; }=Guid.Empty;
        /// <summary>
        /// 名称，不可重复
        /// </summary>
        [StringLength(200)]
        [Required]
        public string DictName { get; set; }
        /// <summary>
        /// 值，不可重复
        /// </summary>
        [StringLength(200)]
        [Required]
        public string DictValue { get; set; }
        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(2000)]
        public string Description { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public int Level { get; set; }
    }
}